package com.sjl.RegexExample;

import lombok.extern.java.Log;


import java.util.regex.Pattern;

/**
 * @deprecated 正则表达式
 */
@Log
public class RegexExample {


    public static void main(String[] args) {
        String str = "/哈哈哈s.saMp3";
//        String rex =".*[\\.\\w{3}|\\.\\w{4}]+$";
        String rex =".*?\\.(\\w{3}||\\w{4})$";

        boolean isMatch = Pattern.matches(rex, str);

        log.info(isMatch+"");
    }
    
    

}
